<?php
/**
 * Created by PhpStorm.
 * User: xuzhong
 * Date: 2025/5/29
 * Time: 18:23
 */

namespace app\provider;

use think\Service;
class MailServiceProvider extends Service
{
    public function register() {
        // 绑定到容器（单例模式）
        $this->app->bind('mail.service', function(){
            return new \app\common\service\Mail();
        });
    }
}